package main;

import common.Utils;
import tests.*;

import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException, InterruptedException {

        /**
         * 注册页面
         */
        RegisterPageTest registerPageTest = new RegisterPageTest();
        registerPageTest.checkRegisterPage();
        registerPageTest.registerFail();
        registerPageTest.registerSuc();

        /**
         * 登录页面
         */
        LoginPageTest loginPageTest = new LoginPageTest();
        loginPageTest.checkLoginPage();
        loginPageTest.loginFail();
        loginPageTest.loginSuc();



        /**
         * 验证码页面
         */
        CaptchaPageTest captchaPageTest = new CaptchaPageTest();
        captchaPageTest.checkFail();

        /**
         * 列表页面
         */

        ListPageTest listPageTest = new ListPageTest();
        listPageTest.checkListPage();


        /**
         * 详情页面
         */
        DetailPageTest detailPageTest = new DetailPageTest();
        detailPageTest.checkDetailPage();
        detailPageTest.updateDetail();
        detailPageTest.deleteDetailToCancel();
        detailPageTest.deleteDetailToAffirm();


        /**
         * 编辑页面
         */
        EditPageTest editPageTest = new EditPageTest();
        editPageTest.checkEditPage();
        editPageTest.editPageFail();
        editPageTest.editPageSuc();


        Utils.close();

    }
}
